#!/bin/bash
mkdir /opt/TIM
wget http://yun.tzmm.com.cn/index.php/s/5hJNzt2VR9aIEF2/download -O TIM.AppImage
cp TIM.AppImage /opt/TIM/TIM.AppImage
cp src/ico.jpg /opt/TIM/ico.jpg
apt-get update
apt-get install wine winetricks
cp src/TIM.desktop /usr/share/applications/TIM.desktop
chmod 744 /usr/share/applications/TIM.desktop
#sudo chown -R "$SUDO_USER":users /opt/TIM
chmod -R 777 /opt/TIM
echo "安装完成" 
